#include "mem_allocator_c.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

int main() {
  printf("hello world");
  MemAllocDelegate delegate;
  init_mem_delegate(&delegate, 0, 0);
  int8_t* p_addr = mem_delegate_calloc(&delegate, 10, 10);
  const char* const str = "hello world";
  memcpy(p_addr, str, strlen(str) + 1);
  printf("%s\n", p_addr);
  mem_delegate_free(&delegate, p_addr);

  destroy_mem_delegate(&delegate);

  return 0;
}
